package model
{
	import model.structure.StructureTraffic;

	public class ChartDataManager
	{
		private var _traffic:StructureTraffic
		public function ChartDataManager(){
			
		}

		public function get traffic():StructureTraffic
		{
			if(!_traffic)
				_traffic = new StructureTraffic;
			return _traffic;
		}

		public function set traffic(value:StructureTraffic):void
		{
			_traffic = value;
		}

		public function setParamData(dObj:Object):void
		{
			trace(dObj.hasOwnProperty("traffic"))
			
			if(dObj.hasOwnProperty("traffic"))
				traffic.parseData(dObj.traffic)
		}
	}
}